package book.cafe

object MyModule {

  def abs(i: Int): Int = {
    if (i < 0) -i else i
  }

  private def printAbs(i: Int): Unit = {
    val value = "the %d absolute value is %d"
    println(
      value.format(i, abs(i))
    )
  }

  def main(args: Array[String]): Unit = {
    printAbs(-10)

  }
}
